import actionCreators from "../store/actionCreators/counter";
import { connect } from "react-redux";
function Counter(props){
    return (
        <div>
            <p>{props.number}</p>
            <button onClick={props.add}>+</button>
            <button onClick={props.minus}>-</button>
            <button onClick={props.thunkAdd}>thunkAdd</button>
            <button onClick={props.promiseAdd}>promiseAdd</button>
            <button onClick={props.promiseAdd2}>promiseAdd2</button>
        </div>
    )
}
export default connect(
    state=>state.counter,
    actionCreators
)(Counter);